// 设置宽高
@mixin wh($width, $height) {
	width: $width;
	height: $height;
}

// 设置高度与行高一致
@mixin lineH($height: 0, $type: 0){
	line-height: $height;
	@if $type > 0 {
		height: $height;
	}
}

// 设置字体大小，颜色
@mixin sc($fs, $color) {
	font-size: $fs;
	color: $color;
}

// flex
@mixin fja($jType: space-between, $aType: center) {
	display: flex;
	justify-content: $jType;
	align-items: $aType;
}

// 文本超出省略号
@mixin showEllipsis($index: 1) {
	overflow: hidden;
	text-overflow: ellipsis;
	@if $index == 1 {
		white-space: nowrap;
	} @else {
		-webkit-line-clamp: $index;
		display: -webkit-box;
		-webkit-box-orient: vertical;
	}
}
